const custom = require("./data.js")

Component({
  data: {
    tabActive: "package",
    goodsList: custom.packageList,
    couponList: custom.couponList,
    presentList: custom.presentList
  },
  methods: {
    toPackagePage(e: any) {
      console.log(e);
      let id = e.currentTarget.dataset.id;
      wx.navigateTo({
        url: "/pages/mall/package/index?id=" + id
      })
    },
    changeTab(e: any) {
      console.log(e)
      let tabActive = e.currentTarget.dataset.type;
      this.setData({
        tabActive: tabActive
      });
    }
  }
})